package com.ksyun.alert.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ksyun.alert.entity.AlertMetricsDO;

/**
 * 指标记录表接口层
 * @author 蓝
 */
public interface AlertMetricsService extends IService<AlertMetricsDO> {
    void insert(AlertMetricsDO metrics);

    /**
     * 根据指标名和告警id查询指标值
     * @param alertId 告警id
     * @param metricName 指标名
     * @return 指标值
     */
    Float selectRecordByAlertIdAneMetricName(Long alertId, String metricName);
}